<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // for of 循环遍历

        // let arr = [1,2,3];

        // console.log(arr);
        // for(let i of arr){
        //     console.log(i);
        // }

        // let s1 = new Set([1,2,3]);

        // console.log(s1);
        // for(let i of s1){
        //     console.log(i);
        // }

        // let m1 = new Map([
        //     ['a','1'],
        //     ['b','2']
        // ])

        // console.log(m1);

        // for(let i of m1){
        //     console.log(i);
        //     // console.log(i[0]);
        // }

        let obj = {
            name:"老王",
            age:18,
            sex:"男"
        }

        console.log(obj);

        // obj is not iterable
        for(let i of obj){
            console.log(i);
        }




    </script>
</body>
</html>